package com.ykdl.app.views;

import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.widget.TextView;
/**
 * 
 * 自动循环滚动文字的textview
 *
 * @see  com.ykdl.member.kid.gears.ireader.CommunicationActivity
 * @since 1.0
 */
public class FocusTextView extends TextView {

	public FocusTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	public FocusTextView(Context context, AttributeSet attrs) {   
		super(context, attrs);
		setEllipsize(TextUtils.TruncateAt.valueOf("MARQUEE"));
		setMarqueeRepeatLimit(6);
		setSingleLine(true);
		setHorizontallyScrolling(true);
	}

	public FocusTextView(Context context) {
		super(context);
	}

	@Override
	public boolean isFocused() {
		return true;
	}

}
